package com.fsnbigdata.service.impl;

import com.fsnbigdata.domain.ZhKopu;
import com.fsnbigdata.repository.ZhkopuRepository;
import com.fsnbigdata.service.api.ZhkopuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Wei YuanJin
 * @Date: Created in 9:36 2018/8/28
 * @Modified By:
 */
@Service
public class ZhkopuServiceImpl implements ZhkopuService {
    
    @Autowired
    private ZhkopuRepository zhkopuRepository;
    
    @Override
    public ZhKopu findById(long id) {
        return zhkopuRepository.findOne(id);
    }
    
    @Override
    public ZhKopu update(ZhKopu zhkopu) {
        return zhkopuRepository.saveAndFlush(zhkopu);
    }
}





